'''
1.access.log匹配IP地址,抓取， 然后排序
'''
import re
L=[]
f=open('/var/log/httpd/access_log','r')
for i in f:
    s=re.slipt(' ',i)
    L.append(s[0])
    L1=sorted(L,resevre=True)
    print()